package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Major;
import com.qdu.mapper.MajorMapper;
import com.qdu.service.MajorService;
@Service
public class MajorServiceImpl implements MajorService{
	@Autowired
	MajorMapper majorMapper;
	
	@Override
	public Major selectMajorById(int id) {
		return majorMapper.selectMajorById(id);
	}

	@Override
	public boolean addMajor(Major major, int acdmid, int termId) {
		return majorMapper.addMajor(major, acdmid, termId);
	}

	@Override
	public boolean modifyMajor(Major major, int acdmid, int termId) {
		return majorMapper.modifyMajor(major, acdmid, termId);
	}

	@Override
	public boolean deleteMajorById(int id) {
		return majorMapper.deleteMajorById(id);
	}

	@Override
	public List<Major> selectAllMajor() {
		return majorMapper.selectAllMajor();
	}

	@Override
	public List<Major> selectMajorByacdmid(int id) {
		return majorMapper.selectMajorByacdmid(id);
	}
	
}
